import http from './index'
// interface httpPorps {
//     usr:string,
//     method:string,
//     data:any
// }
//登录请求
export const  userApi:any = (user:object) =>{
   return  http({
        url:'/storefront/user/login',
        method:"POST",
        data:user
    })
}
//门店注册请求
export const  registerApi:any = (user) =>{
    return  http({
        url:'/storefront/user/register',
        method:"POST",
        data:user
    })
}
//门店注册请求城市
export const  registerGetCityApi:any = () =>{
    return  http({
        url:'/storefront/user/reigster/getcity',
        method:"POST",
    })
}
//门店上传企业资料
export const  registerUpdataApi:any = (info) =>{
    return  http({
        url:'/storefront/user/register/updata',
        method:"POST",
        data:info
    })
}
//门店获取企业资料
export const  getEnterpriseApi:any = (info) =>{
    return  http({
        url:'/storefront/user/get/Enterprise/info',
        method:"POST",
        data:info
    })
}
//门店注册提交收款信息
export const  registerCollectionApi:any = (info) =>{
    return  http({
        url:'/storefront/user/register/collection',
        method:"POST",
        data:info
    })
}

//门店注册提交返回状态
export const  registerGetStateApi:any = (info) =>{
    return  http({
        url:'/storefront/user/register/getstate',
        method:"POST",
        data:info
    })
}
//修改密码
export const  userPassEditApi:any = (info) =>{
    return  http({
        url:'/user/passEdit',
        method:"POST",
        data:info
    })
}

//确认原密码正确
export const  userPassSureApi:any = (info) =>{
    return  http({
        url:'/user/passsure',
        method:"POST",
        data:info
    })
}

//获取原邮箱的验证码
export const  getEmailCodeApi:any = () =>{
    return  http({
        url:'/user/email/code',
        method:"POST"
    })
}

//验证原邮箱的验证码
export const  verificationCodeApi:any = () =>{
    return  http({
        url:'/user/email/old/verification',
        method:"POST"
    })
}


//激活新邮箱
export const  activationApi:any = (email) =>{
    return  http({
        url:'/user/email/activation',
        method:"POST",
        data:email
    })
}

//验证原邮箱的验证码
export const  verificationNewCodeApi:any = () =>{
    return  http({
        url:'/user/email/new/verification',
        method:"POST"
    })
}

//门店注册获取收款信息
export const  getCollectionApi:any = (info) =>{
    return  http({
        url:'/storefront/user/get/collection',
        method:"POST",
        data:info
    })
}